<%--
  Created by IntelliJ IDEA.
  User: Root404
  Date: 2023/5/23
  Time: 12:00
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="t" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="xx" uri="http://mycompany151.com" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<% request.setCharacterEncoding("utf-8");%>
<form method="get" action= "${pageContext.request.contextPath}/ServletTest1">
    <input type="text" name="name">
    <input type="submit" value="提交">
</form>
<p> <%=request.getParameter("ip")%></p>
<p>变量：${empty bl?"1":"2"}</p>
<p>对象：${dx.name}</p>
<p>list:${list[0].name}</p>
<p>map:${map.map.name}</p>
<c:set var="xxx" value="2020-09-08"></c:set>
<fmt:formatDate pattern="yyyy-MM-dd" value="${date}"></fmt:formatDate>
<br/>
<c:forEach items="${list}" var="xjj" varStatus="status" >
    <tr  <c:if test="${status.index%2==0}"> style="background-color: red" </c:if> >
        <td>${xjj.name}</td>
    </tr>
</c:forEach>
<c:forEach var="i" begin="1" end="5" step="2">${i}</c:forEach>
${xx:show("xxxxxx")}
<script>
    alert("xxx");
</script>
</body>
</html>
